package demon2;
/*
* 通过继承Thread类来创建线程
* */
public class MyThread_1 extends Thread{
    @Override
    public void run() {
        System.out.println("通过继承Thread来创建线程");
    }

    public static void main(String[] args) {
        MyThread_1 thread=new MyThread_1();
        thread.start();
    }
}
